#include "mainwindow.h"
#include "ui_mainwindow.h"
#include"board.h"
#include<QPainter>
#include<QPen>
#include<QDebug>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    this->close();
    B=new board();
    B->show();

}
